package com.hejia.alauda.utils;

import java.math.BigDecimal;

public class InterestUtils {
	
	public static BigDecimal calculateInterest(BigDecimal amount, BigDecimal rate, Integer days){
		return amount.multiply(rate).multiply(new BigDecimal(days)).divide(new BigDecimal(360),2,BigDecimal.ROUND_CEILING);
	}

}
